<template>
    <div>
        <markdown :text="text"></markdown>
    </div>
</template>

<script setup lang="ts">
import Markdown from '../XUII/markdown.vue';

import { ref, onMounted } from 'vue'
import fs from '/@/services/FileService'
const text = ref('')
const props = defineProps({
    fullName: {
        type: String,
        default: () => ('')
    }
})
onMounted(async () => {
    if (props.fullName) {
        text.value = await fs.getFileText(props.fullName)
    }
})

</script>

<style scoped>

</style>